package vista;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import controlador.ControladorPrincipal;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VistaPrincipal extends javax.swing.JDialog {

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	private JPanel jPanelPantallaPrincipal;
	private JButton Salir;
	private JLabel Imagen;
	private JButton btnAdministrador;
	private JButton btnInstrucciones;
	private JButton btnPuntajes;
	private JButton btnJugar;
	
	public VistaPrincipal(JFrame jfrm,ControladorPrincipal controlador_pantalla_principal) {
		super(jfrm);
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			this.setTitle("Ahorcado ");
			{
				jPanelPantallaPrincipal = new JPanel();
				getContentPane().add(jPanelPantallaPrincipal);
				jPanelPantallaPrincipal.setBounds(12, 6, 606, 260);
				jPanelPantallaPrincipal.setLayout(null);
				{
					btnJugar = new JButton();
					jPanelPantallaPrincipal.add(getBtnJugar());
					btnJugar.setText("Jugar Ahora");
					btnJugar.setBounds(91, 125, 122, 28);
					btnJugar.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagenes/Agregar.png")));
				}
				{
					btnPuntajes = new JButton();
					jPanelPantallaPrincipal.add(getBtnPuntajes());
					btnPuntajes.setText("Puntajes");
					btnPuntajes.setBounds(6, 52, 122, 30);
					btnPuntajes.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagenes/report.png")));
				}
				{
					Salir = new JButton();
					jPanelPantallaPrincipal.add(Salir);
					Salir.setText("Salir");
					Salir.setBounds(91, 179, 123, 29);
					Salir.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagenes/Salir.gif")));
				}
				{
					Imagen = new JLabel();
					jPanelPantallaPrincipal.add(Imagen);
					Imagen.setBounds(350, 11, 223, 215);
					Imagen.setDisabledIcon(new ImageIcon(getClass().getClassLoader().getResource("imagenes/Ahorcado.gif")));
					Imagen.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0,0,0)));
					Imagen.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagenes/Ahorcado.gif")));
				}
				{
					btnInstrucciones = new JButton();
					jPanelPantallaPrincipal.add(btnInstrucciones);
					btnInstrucciones.setText("Instrucciones");
					btnInstrucciones.setBounds(149, 51, 147, 32);
					btnInstrucciones.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagenes/table_edit.gif")));
				}
				{
					btnAdministrador = new JButton();
					jPanelPantallaPrincipal.add(btnAdministrador);
					btnAdministrador.setText("Opciones de Administrador");
					btnAdministrador.setBounds(46, 11, 221, 28);
					btnAdministrador.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagenes/bullet_key.png")));
				}
			}
			pack();
			this.setSize(654, 312);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	public JButton getBtnJugar() {
		return btnJugar;
	}
	
	public JButton getBtnAdministrador() {
		return btnAdministrador;
	}

	public JButton getBtnPuntajes() {
		return btnPuntajes;
	}

	
	
	public JButton getSalir() {
		return Salir;
	}

	public JButton getBtnInstrucciones() {
		return btnInstrucciones;
	}
	
}
